import http from "@/http";
import { ListParm, Admin } from "./AdminModel";
//新增
export const addAdminUserApi = (parm:Admin)=>{
return http.post("/api/admin/kadd",parm)
}

//列表
export const getListApi = (parm:ListParm)=>{
return http.get("/api/admin/getList",parm)
}
//编辑
export const editApi = (parm: Admin) => {
    return http.put("/api/admin/update",parm)
}
//删除
export const deleteApi = (id:string) => {
    return http.delete(`/api/admin/delete/${id}`)
}